<!-- <meta http-equiv=”X-UA-Compatible” content=”IE=edge,chrome=1″ /> -->
<!--[if lte IE 9]>
<script src=”http://ie7-js.googlecode.com/svn/version/2.0(beta)/IE8.js” type=”text/javascript”></script>
<script src="https://cdn.bootcss.com/jquery/1.11.3/jquery.js"></script>
<script src="https://cdn.bootcss.com/jquery-placeholder/2.3.1/jquery.placeholder.js"></script>
<script>
$(function(){
    $('input[placeholder]').placeholder();
});
</script>
<![endif]-->
<iframe src="about:blank" name="upload" frameborder="0" class="hide"></iframe>
<form action="<{link app=b2c ctl='site_passport' act='create' args01=$next_url}>" method="post" enctype="multipart/form-data" encoding="multipart/form-data" target="_self">
  <input name="forward" type="hidden" value="<{$options.url}>">
  <input name="mini" type="hidden" value="<{$mini_passport}>">
  <ul>
    <li class="form-item">
      <label for="" class="form-label"><em class="warn">*</em>登录帐号：</label><span class="form-act"><{input type="text" name="pam_account[login_name]" id="" class="action-account-check" placeholder="用户名/邮箱/手机号，最少4个字符" vtype="required" data-caution="请填写登录帐号，最少4个字符" autofocus}><span class="validation-messagebox"></span></span>
    </li>
    <li class="form-item">
    <label for="" class="form-label"><em class="warn">*</em>密码：</label><span class="form-act"><{input type="password" name="pam_account[login_password]" maxlength="20" placeholder="6-20个字符" vtype="required&&minLength:6&&maxLength:20" data-caution="请填写密码，6-20个字符&&输入不正确，最少6个字符&&输入不正确，最多20个字符" check='true'}></span>
    </li>
    <li class="form-item">
    <label for="" class="form-label"><em class="warn">*</em>确认密码：</label><span class="form-act"><{input type="password" name="pam_account[psw_confirm]" id="" class="x-input" maxlength="20" placeholder="再次填写密码" vtype="equal:pam_account[login_password]" data-caution="密码与确认密码不相符，请重新填写"}><span class="validation-messagebox"></span></span>
    </li>
    <li class="form-item">
      <label for="" class="form-label"><em class="warn">*</em>法人姓名：</label><span class="form-act"><{input type="text" name="frname" class="action-frname" placeholder="法人姓名，最少4个字符" vtype="required"}><span class="validation-messagebox"></span></span>
    </li>
     <li class="form-item">
      <label for="" class="form-label"><em class="warn">*</em>法人身份证：</label><span class="form-act"><{input type="text" name="idnumber" class="action-idnumber"  placeholder="法人身份证号" vtype="required"}><span class="validation-messagebox"></span></span>
    </li>
    <li class="form-item">
      <label for="" class="form-label"><em class="warn">*</em>公司名：</label><span class="form-act"><{input type="text" name="gcname" class="action-gcname" placeholder="公司名" vtype="required"}><span class="validation-messagebox"></span></span>
    </li> 
    <li class="form-item" style="display: block;">  
      <label for="" class="form-label"><em class="warn">*</em>营业执照图片：</label><span class="form-act">
       <input type="file" name="licensep" class="action-licensep" id="" accept="image/gif,image/jpg,image/jpeg,image/png" required="required">
      <span class="validation-messagebox"></span><br><span style="color:#f58800">(分辨率不超过3500*3500，大小不超过4M)</span>
    </li>
    <li class="form-item" style="display: block; float: right; width: 629px;">
      <label for="" class="form-label"><em class="warn"></em>食品流通许可证：</label><span class="form-act"><input type="file" name="permit" class="action-permit" accept="image/gif,image/jpg,image/jpeg,image/png" >
    </li>

    <!--add by lkb 2017 05 19-->
    <li class="form-item" style="display: block; float: right; width: 629px;">
      <label for="" class="form-label"><em class="warn"></em>推荐业务员：</label><span class="form-act"><{input type="text" name="salesman" class="action-account-check_salesman"}><span class="validation-messagebox"></span></span>
    </li>
    
    <style>
    .action-verifycode .verify-code.auto-change-verify-handle{display: inline-block;}
    </style>
    
   <!--  <li class="form-item" style="display: block; float: right; width: 629px;">
      <label for="" class="form-label"><em class="warn"></em>电话：</label><span class="form-act"><{input type="text" name="telephone" class="action-account-check_telephone"}><span class="validation-messagebox"></span></span>
    </li>  -->

    
    <!--add end-->


    <!--add end-->


    
    <{foreach from=$attr item=item name="item" key='row'}>
    <{if $item.attr_name !='联系电话'}>
    <li class="form-item"  style="display: block;height: 43px; float: right; width: 629px;">
    <label for="" class="form-label"><{if $item.attr_required eq 'true'}><em class="warn">*</em><{/if}><{$item.attr_name}>：</label>
    <span class="form-act">
      <{if $item.attr_type =='date'}>
        <{if $item.attr_value != '0-0-0'}>
          <{assign var=value value=$item.attr_value}>
        <{/if}>
        <{if $item.attr_required eq 'true'}>
          <{assign var=vtype value="required"}>
        <{/if}>
        <!-- datepicker滚动定位问题 -->
        <{if $mini_passport == true}>
          <{assign var=options value="{inject:'mini_signup'}"}>
        <{/if}>
        <{input type="datepicker" data-calendar-options=$options vtype=$vtype name=$item.attr_column value=$value}>
      <{/if}>

      <{if $item.attr_type =='region'}>
      <{if $item.attr_required eq 'true'}>
      <{input app=ectools type="region" name=$item.attr_column value=$item.attr_value vtype="area"}>
      <{else}>
      <{input app=ectools type="region" name=$item.attr_column value=$item.attr_value}>
      <{/if}>
      <{/if}>

      <{if $item.attr_type =='gender'}>
      <{input type='gender' name=$item.attr_column value=$item.attr_value}>
      <{/if}>

      <{if $item.attr_type =='select'}>
      <select name="<{$item.attr_column}>" class="x-select" <{if $item.attr_required eq 'true'}>vtype="required"<{/if}>>
        <option value="" <{if $item.attr_value == ''}>selected="selected"<{/if}>><{t}>请选择<{/t}></option>
        <{foreach from=$item.attr_option item=option name="option"}>
        <option value="<{$option}>" <{if $item.attr_value == $option}>selected="selected"<{/if}>><{$option}></option>
        <{/foreach}>
      </select>
      <{/if}>

      <{if $item.attr_type =='checkbox'}>
      <{foreach from=$item.attr_option item=checkbox name="checkbox" }>
      <input type="checkbox" name="box:<{$item.attr_column}>[]" value="<{$checkbox}>"<{if $item.attr_required eq 'true' && $smarty.foreach.checkbox.iteration==1}> vtype="onerequired"<{/if}> <{foreach from=$item.attr_value item=checkboxvalue name="checkboxvalue" }><{if $checkboxvalue==$checkbox}>checked="checked"<{/if}><{/foreach}>>
      <label><{$checkbox}></label>
      <{/foreach}>
      <input type="hidden" name="<{$item.attr_column}>[]" value="%no%">
      <{/if}>

      <{if $item.attr_type == 'text' || $item.attr_type == 'number' || $item.attr_type == 'alpha'}>
      <input type="text" class="x-input-tel" name="<{$item.attr_column}>" value="<{$item.attr_value}>" vtype="<{if $item.attr_required eq 'true'}>required<{/if}><{if $item.attr_valtype}><{if $item.attr_required eq 'true'}>&&<{/if}><{$item.attr_valtype}><{/if}>" />
      <{/if}>
    </span>
    </li>
    <!--add by lkb-->
    <{else}>
    <li class="form-item"  style="display: block;height: 43px; float: right; width: 629px;">
      <label for="" class="form-label"><em class="warn"></em>联系电话：</label><span class="form-act"><{input type="text" name="contact[phone][telephone]" class="action-account-check_telephone"}><span class="validation-messagebox"></span></span>
    </li> 
     <{/if}>
    <{/foreach}>

    <{if $valideCode == 'true' || $site_sms_valide == 'true' }>
    
    <li class="form-item action-verifycode" style=" float: right; width: 629px; height: 43px; position: relative;" <{if $valideCode == 'false' && $site_sms_valide == 'true' }> style="display:none;" <{/if}> >

      <label for="" class="form-label"><em class="warn">*</em>验证码：</label>
      <span class="form-act" style="display: block;">
        <{input type="vcode" name="signupverifycode" style="display: inline-block; top: 0;"  oninput="checkLength(this)" class="verify-input" onblur="checksignupverifycode(this)" placeholder="填写验证码" data-caution="请正确填写验证码" key='LOGINVCODE' a_class="lnklike"}>
      </span>
    </li>
    <{/if}>
    <li class="form-item action-need-verify" <{if $site_sms_only_valide != 'true'}> style="display:none;" <{/if}> >
      <label for="" class="form-label"><{t}>验证码：<{/t}></label>
      <span class="form-act" style="display: block;">
        <{input type="text" style="display: inline-block;vertical-align: top; position: absolute; top: 0;float:left;" name="vcode" id="" style="width: 80px;font-size: 12px;"}> <a href="<{link app=b2c ctl=site_passport act=send_vcode_sms}>" class="btn btn-caution action-get-verifycode"><span><span>获取短信验证码</span></span></a>
      </span>
    </li>  

    <li class="form-item" style="display: block; float: right; width: 629px;">
      <label for="" class="form-label"></label>
      <span class="form-act">
        <input type="checkbox" name="license" id="" class="x-check" vtype="onerequired" data-caution="<{t}>请选择同意<{/t}>" checked="checked">
        <label for="" class="form-sub-label"> <{t}>我已阅读并同意<{/t}> <a href="<{link app=b2c ctl=site_passport act=license }>" class="lnklike" target="_blank"><{t}>会员注册协议<{/t}></a> <{t}>和<{/t}> <a href="<{link app=b2c ctl=site_passport act=privacy }>" class="lnklike" target="_blank"><{t}>隐私保护政策<{/t}></a></label>
        <span class="validation-messagebox"></span>
      </span>
    </li>
    <li class="form-item-normal" style="display: block; float: right; width: 629px;">
      <label for="" class="form-label"></label>
      <span class="form-act">
        <{assign var='label' value='注　册'}>
<!--         <{button type="submit" class="btn-major btn-big"   label=$__b2c=$label|t:'b2c'}> -->
                <{button type="submit" class="btn-major btn-big" id="submit-regist"     label=$__b2c=$label|t:'b2c'}>
      </span>
    </li>
  </ul>
</form>


